package com.forum.article.mapper;

import com.forum.article.entity.ForumArticleTag;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.awt.*;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author bncgnc
 * @since 2022-01-04
 */
@Repository
public interface ForumArticleTagMapper extends BaseMapper<ForumArticleTag> {


    List<Long> findHotsTagIds(int limit);

    List<ForumArticleTag> findTagsByTagIds(List<Long> tagIds);
//根据文章id查询标签
    List<ForumArticleTag> findTagsByArticleId(Long articleId);
}
